package trlygjj.tanruiliyigenjinjin.mapper;

import trlygjj.tanruiliyigenjinjin.domain.CurriculumTable;
import trlygjj.tanruiliyigenjinjin.query.QueryObject;

import java.util.List;

public interface CurriculumTableMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CurriculumTable record);

    CurriculumTable selectByPrimaryKey(Long id);

    List<CurriculumTable> selectAll();

    int updateByPrimaryKey(CurriculumTable record);

    /**
     * 查询总条数
     * @param qo 查询对象的信息
     * @return
     */
    int queryForCount(QueryObject qo);

    /**
     * 分页的查询
     * @param qo 查询对象的信息
     * @return
     */

    List<CurriculumTable> queryForList(QueryObject qo);

    /**
     * 点击日历查询所有的数据
     * @param date 根据时间
     * @return
     */
    List<CurriculumTable> selectCurriculumTableByDate(String  date);
}